import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import LoginPage from '@/components/LoginPage'
import IndexPage from '@/components/IndexPage'
import PublishPage from '@/components/PublishPage'
import StudentView from '@/components/StudentView'
import StudentPage from '@/components/StudentPage'
import ModelView from '@/components/ModelView'
import ArticleList from '@/components/ArticleList'
import NotAudit from '@/components/NotAudit'
import NotAuditPage from '@/components/NotAuditPage'
import ArticleListPage from '@/components/ArticleListPage'
import ArticleListDetail from '@/components/ArticleListDetail'
import TextPage from '@/components/TextPage'
import PhotoUpload from '@/components/PhotoUpload'
import AmentPage from '@/components/AmentPage'
import AmentPortrait from '@/components/AmentPortrait'
import ClasPhotoList from '@/components/ClasPhotoListPage'
import TextP from '@/components/TextP'
import TeVe from '@/components/TeVe'
import ClasPhotoUpdate from '@/components/ClasPhotoUpdate'
 Vue.use(Router)

export default new Router({
  routes: [
    {path: '/',component: LoginPage},
    //{path: '/',component: TeVe},
    {path: '/index/amentp',component: AmentPage},
    //{path: '',component: AmentPortrait},
    {path: '/login',component:LoginPage},
    {path: '/index',component:IndexPage},
    {path: '/index/reset', component:StudentView,children:[

    ]},
    {path: '/index/reset/clapu',component:ClasPhotoUpdate},
    {path: '/index/reset/clapl',component:ClasPhotoList},
    {path: '/index/articlelist',component:ArticleList},
     //{path: '/',component:TextPage},
    {path: '/index/articlelist/articlelistpage',component:ArticleListPage},
    {path: '/index/articlelist/articlelistpage/ald',component:ArticleListDetail},
    {path: '/index/notaudit',component:NotAudit},
    {path: '/index/notaudit/notauditpage',component:NotAuditPage},
    {path: '/publish',component:PublishPage},
     //{path: '/publish',component:PhotoList},
     {path: '/publish/mpage',component:ModelView}
  ],
  //解决打包路由资源找不到问题
    // mode: 'history',
    // base: '/mobile/',
    // scorllBehavior: () => ({
    //   y:0
    // }),
})
